<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:r="http://ricchieri.com/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:body>


	<ui:composition template="../../templates/commonLayoutOther.xhtml">
		<ui:define name="title">#{msg.titleOther}</ui:define>
		<ui:define name="content">
			<h:form id="editTemplate">
				<h2>#{msg.editEmailTemplate}</h2> 
				<r:commonEmailTemplate manageBean="#{editEmailMB}" emailTemplate="#{editEmailMB.emailTemplate}" form="editTemplate"/>
				<h:panelGrid columns="2" width="10%">
					<h:outputLabel value="Principal" rendered="#{!editEmailMB.emailTemplate.isDefault}"/>
					<p:selectBooleanCheckbox value="#{addEmailMB.emailTemplate.isDefault}" rendered="#{!editEmailMB.emailTemplate.isDefault}"/> 
				</h:panelGrid>
				
				
				<center style="margin-top:10px;">
					<r:commandLinkCustom id="searchEmailTemplate" action="#{editEmailMB}" method="doBackToSearchEmailTemplate" icon="icon-zoom-out" message="#{msg.searchEmailTemplate}" ajax="false" />
					<r:commandLinkCustom id="save" action="#{editEmailMB}" method="save" icon="icon-save" message="#{msg.saveTemplate}" ajax="false" partialSubmit="false"/>
				</center>
			</h:form>
		</ui:define>
	</ui:composition>
</h:body>
</html>
